INCLUDE_DIRECTORIES(  ${LUAEx_SOURCE_DIR} )
##INCLUDE_DIRECTORIES(  ${TOLUA++_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${LUA_INCLUDE_DIR} )
LINK_DIRECTORIES( ${MYLIB_LIB_DIR} )

ADD_EXECUTABLE(test_luaMathEx main.cpp)
if(NOT LUA_MATH_EX_STATIC_LIB)
    if(WIN32)
       add_definitions( -DLUA_MATH_EX_DLL )
    endif(WIN32)
endif(NOT LUA_MATH_EX_STATIC_LIB)


add_definitions(-DUNICODE -D_UNICODE)
add_dependencies(test_luaMathEx luaMathEx)

message( STATUS "test luaMathEx ToLUA++ lib dir:${TOLUA++_LIBRARY}")
message( STATUS "test luaMathEx ToLUA++ lib dir:${luaMathEx_LIBRARY}")
target_link_libraries(test_luaMathEx ${luaMathEx_LIBRARY} )
target_link_libraries(test_luaMathEx ${OPENGL_LIBRARIES})
target_link_libraries(test_luaMathEx ${LUA_LIBRARIES} )
target_link_libraries(test_luaMathEx ${GL2PS_LIBRARY} )

if(WIN32)
	target_link_libraries(test_luaMathEx luaMathEx.lib )
endif(WIN32)
collect_library(test_luaMathEx)
